<?php
require_once dirname(__FILE__) . '/../../bootstrap/unit.php';

class unit_WidgetFormI18NDatePastPeriodTest extends sfPHPUnitBaseTestCase
{

  /**
   * @author Maximilian Lenkeit <dev@lenki.com>
   * @covers WidgetFormI18NDatePastPeriod::configure
   */
  public function testConfigureShouldSetYearOptionToStartIn1950 ()
  {
    $widget = new WidgetFormI18NDatePastPeriod(array('culture' => 'en'));
    $years = $widget->getOption('years');
    $this->assertTrue(in_array(1950, $years));
  }
}